package com.ea.report.mapper;

import com.ea.common.mybatis.EmoAnalyBaseMapper;
import com.ea.common.report.pojo.vo.DashboardWarningPropertiesVo;
import com.ea.common.report.pojo.vo.StatsWarningPropertiesVo;
import com.ea.report.pojo.po.StatsWarningProperties;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StatsWarningPropertiesMapper extends EmoAnalyBaseMapper<StatsWarningProperties> {
    List<StatsWarningPropertiesVo> selectStatsWarningProperties(
            @Param("startDate") String startDate,
            @Param("endDate") String endDate,
            @Param("companyIdList") List<Long> companyIdList,
            @Param("deptIdList") List<Long> deptIdList
    );

    /**
     * 返回12个特性预警男女人数
     * @param startDate
     * @param endDate
     * @param companyIdList
     * @param deptIdList
     * @return
     */
    List<DashboardWarningPropertiesVo> selectGroupWarningPropertiesDVo(
            @Param("startDate") String startDate,
            @Param("endDate") String endDate,
            @Param("companyIdList") List<Long> companyIdList,
            @Param("deptIdList") List<Long> deptIdList
    );


    List<DashboardWarningPropertiesVo> selectGroupWarningPropertiesDVoEmpty(
            @Param("startDate") String startDate,
            @Param("endDate") String endDate,
            @Param("companyIdList") List<Long> companyIdList,
            @Param("deptIdList") List<Long> deptIdList
    );
}
